<table cellpadding="0" cellspacing="0" border="0" class="display" id="example" width="100%">
 <thead>
  <tr>
   <th>Codigo</th>
   <th>Descripcion</th>
   <th>cuatrimestre</th>
   </tr>
 </thead>
 <tbody>
    <?php if(count($materias_list)>0){
    foreach ($materias_list as $materia){ ?>
    <tr>
    <td><?php echo $materia->codi_mat; ?></td>
    <td><?php echo $materia->desc_mate; ?></td>
    <td class="center"><?php echo $materia->desc_cuat; ?></td>
    </tr>
    <?php }
    }else{ ?>	
     <div class="msgerror">No se pudo Generar el listado, Intentalo nuevamente mas tarde...</div>
    <?php
      }
    ?>	
 </tbody>
</table>
<div class="exito">
 <?php echo "Descarga disponible: "?><?php echo anchor('pdfs/materias_pdf','<img src="../images/general/pdf_ico.gif" width="20" height="18" />') ?>
</div>
